/* 全局样式文件 */

/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app {
  height: 100%;
}

/* 响应式断点 */
$mobile: 768px;
$tablet: 1024px;
$desktop: 1200px;

/* 通用工具类 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* 响应式工具类 */
@media (max-width: $mobile) {
  .container {
    padding: 0 10px;
  }
  
  .hide-mobile {
    display: none !important;
  }
  
  .show-mobile {
    display: block !important;
  }
  
  .text-center-mobile {
    text-align: center !important;
  }
  
  .full-width-mobile {
    width: 100% !important;
  }
  
  .no-padding-mobile {
    padding: 0 !important;
  }
  
  .no-margin-mobile {
    margin: 0 !important;
  }
}

@media (min-width: 769px) {
  .hide-desktop {
    display: none !important;
  }
  
  .show-desktop {
    display: block !important;
  }
}

/* 移动端优化 */
@media (max-width: $mobile) {
  html {
    font-size: 14px;
  }
  
  body {
    font-size: 14px;
    line-height: 1.5;
  }
  
  /* 防止水平滚动 */
  .home-wrapper,
  .recruit-page,
  .footer-container {
    overflow-x: hidden;
  }
  
  /* 触摸优化 */
  button, 
  .nav-list li,
  .news-list li {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* 图片响应式 */
  img {
    max-width: 100%;
    height: auto;
  }
}

/* 平板端优化 */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    max-width: 100%;
    padding: 0 20px;
  }
}

/* 桌面端优化 */
@media (min-width: 1025px) {
  .container {
    max-width: 1200px;
    padding: 0 30px;
  }
} 